package com.niuwa.p2p.dao.customer;

import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.customer.CustomerAudit;
import com.niuwa.p2p.vo.customer.BaseLoanVo;
import com.niuwa.p2p.vo.customer.CustomerAuditVo;

@MyBatisDao
public interface CustomerAuditDao {
	
	/**
	 * 查询审核列表
	 * @param BaseInvestVo
	 * @return
	 */
	public List<BaseLoanVo> selectCustomerAuditBySelective(Map<String, Object> paramMap);
	
	/**
	 * 查询审核数
	 * @param BaseInvestVo
	 * @return
	 */
	public int selectCustomerAuditCountBySelective(Map<String, Object> paramMap);
	
	/**
	 * 更新资金状态
	 * 
	 * @param user 更新的客户 对象
	 * @throws Exception
	 */
	public int updateAccountStatusById(CustomerAuditVo auditVo) throws Exception;
	
	/**
	 * 更新审核表信息
	 * 
	 * @param user 更新的客户 对象
	 * @throws Exception
	 */
	public int updateAuditInfoById(CustomerAuditVo auditVo) throws Exception;
	
	/**
	 * 添加审批客户
	 * 
	 * @param customerAudit 审批客户对象
	 * @return 
	 * @throws Exception
	 */
	public int insertCustomerAudit(CustomerAudit customerAudit) throws Exception;


}
